<?php
header('Content-Type: text/html; charset=UTF-8');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>做业(小球滚动)</title>
  <script type='text/javascript' src='query/jquery-1.11.1.min.js'></script>
  <script type='text/javascript'>
		$(function(){
			
			$('#begin').click(function(){
				num =  setInterval(function(){
					if(){}
					});
				})
			});
		
 </script>
 <style type='text/css'>
#div{width:500px;height:500px;border: solid 1px;margin:100px auto;background:gray}
#d{width:30px;height:30px;border-radius:50px;border:solid rgb(250) 1px; background-color:#ff0}
#but{color:green;}
</style>
</head>
 <body>
 	 <button id="but"> Begin </button>
 <div id="div">
 	 <div id="d"></div>
 </div>
 </body>
</html>
